import {link} from '@/api/api.js'
export let note={
	state: {
		  details:[],
		  notede:{},
		  text:""
	},
	mutations: {
		  updetails(state,payload){
			  state.details = payload
		  }
	},
	actions: {
		noteaxios(content){
			link("/details","get").then(ok=>{
						  // console.log(ok.data.details)
						  content.commit("updetails",ok.data.details)
			}).catch(err=>{
						  console.log(err)
			})
		}
		  
		  
	}
}